import request from '@/utils/request'


// 通讯设备重要度系数查询
export function getAllCnRatio (query) {
    return request({
      url: '/cecMain/getAllCnRatio',
      method: 'get',
      params: query
    })
  }

//通讯设备重要度系数添加或修改
export function saveOrUpdateCnRatio (data) {
    return request({
      url: '/cecMain/saveOrUpdateCnRatio',
      method: 'post',
      data: data
    })
  }

  //通讯设备重要度系数删除
  export function deleteCnRatioById (query) {
    return request({
      url: '/cecMain/deleteCnRatioById',
      method: 'get',
      params: query
    })
  }

  // 地震影响系数基准值查询
export function getAllSrBaseline (query) {
    return request({
      url: '/cecMain/getAllSrBaseline',
      method: 'get',
      params: query
    })
  }

//地震影响系数基准值添加或修改
export function saveOrUpdateSrBaseline (data) {
    return request({
      url: '/cecMain/saveOrUpdateSrBaseline',
      method: 'post',
      data: data
    })
  }

  //地震影响系数基准值删除
  export function deleteSrBaselineById (query) {
    return request({
      url: '/cecMain/deleteSrBaselineById',
      method: 'get',
      params: query
    })
  }